import Vue from 'vue'
/** 
 * 病理-既往史
 */
export default {
  /**
   * 添加既往史
   *
   * @param {*} [params={}]
   * @param {*} [config={}]
   * @returns
   */
  async addOperationHistory(params = {}, config = {}) {
    let result = await Vue.http.post('/MedicalRecordOperationHistory/AddOperationHistory', params, config);
    return result;
  },
  /**
   * 通过编号获取既往史
   *
   * @param {*} [params={}]
   * @param {*} [config={}]
   * @returns
   */
  async getOperationHistoryByID(params = {}, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordOperationHistory/GetOperationHistoryByID', config);
    return result;
  },
  /**
   * 通过用户编号获取既往史
   *
   * @param {*} [params={}]
   * @param {*} [config={}]
   * @returns
   */
  async getOperationHistoryByUserID(params = {}, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordOperationHistory/GetOperationHistoryByUserID', config);
    return result;
  },
  /**
   * 更新既往史
   *
   * @param {*} [params={}]
   * @param {*} [config={}]
   * @returns
   */
  async updateOperationHistory(params = {}, config = {}) {
    let result = await Vue.http.put('/MedicalRecordOperationHistory/UpdateOperationHistory', params, config);
    return result;
  }
}
